package org.linlinjava.litemall.db.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.linlinjava.litemall.db.handler.JsonLongArrayTypeHandler;
import java.math.BigDecimal;
import java.time.LocalDateTime;
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("litemall_reward_log")
@Builder
public class LitemallRewardLog {

    @TableId
    private Integer id;
    private Integer ruleId;
    private Integer userId;
    private String registerUsername;
    private Integer registerId;
    @TableField(typeHandler = JsonLongArrayTypeHandler.class)
    private Long[] presentCouponId;
    private BigDecimal presentPoints;
    private LocalDateTime inviteDate;
    private Integer giveMethod;
    private Integer beneficiary;
    private LocalDateTime addTime;
    private LocalDateTime updateTime;
    private Boolean deleted;
}
